package com.woniuxy.business.service;

import com.woniuxy.entity.Collateral;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 担保物的service接口
 */
public interface CollateralService {
    //添加
    void addCollateral(Collateral collateral);
    //根据担保物编号删除
    void removeCollateral(String collateral_num);
    //分页查询
    List<Collateral> getCollateralByPage(String collateral_num, String collateral_type,int pageIndex, int pageSize);
    //根据担保物标号查询
    Collateral getCollateralByCollateralNum(String collateral_num);

    //查询所有类型
    Set<String> getType();
}
